package com.iptv.grape;

import android.os.Bundle;
import android.view.KeyEvent;

import androidx.annotation.Nullable;

import com.iptv.grape.ui.dlg.DlgMgr;
import com.iptv.grape.util.AppLog;

public abstract class BaseAct extends BaseActivity {
    private String thisName = this.getClass().getSimpleName();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        isParentEvent = false;
        int layout = layout();
        if(layout!=0)
            setContentView(layout);
        AppLog.getCurLog().e("activity====>" + thisName);
        initView();
    }
    protected abstract int layout();
    protected abstract void initView();




}
